import request from '@/utils/request'

export default {
    isexistUsername(username){
        return request({
            url:`/api/ucenter/userinformation/checkUsername/${username}`,
            method: 'get',
          })
    },
    isexistemail(email){
        return request({
            url:`/api/ucenter/userinformation/checkemail/${email}`,
            method: 'get',
          })
    },
    isexistcode(email,code){
        return request({
            url:`/api/ucenter/userinformation/checkCode/${email}/${code}`,
            method: 'get',
          })
    },
    sendCode(email){
        return request({
            url:`/api/ucenter/userinformation/sendCode/${email}`,
            method: 'get',
          })
    },
    sendfindCode(email){
        return request({
            url:`/api/ucenter/userinformation/sendfindCode/${email}`,
            method: 'get',
          })
    },
    registe(regisinfo){
        return request({
            url:`/api/ucenter/userinformation/regist`,
            method:'post',
            data:regisinfo
        })
    },
    getusername(username){
        return request({
            url:`/api/ucenter/userinformation/getusername/${username}`,
            method:'get'
        })
    },
    getLoginUserInfo(){
        return request({
            url:`/api/ucenter/userinformation/getMemberInfo`,
            method:'get',
        })
    },
    submitLoginUser(userinfo){
        return request({
            url:`/api/ucenter/userinformation/login`,
            method:'post',
            data: userinfo
        })
    },
    updatepassword(email,password){
        return request({
            url:`/api/ucenter/userinformation/updatepassword/${email}/${password}`,
            method:'get',
        })    
    },
  
}